// COMEX铜库存
const COMEXColumns = [
  {label: "金属", prop: "metalType"},
  {label: "库存", prop: "registerStockQuantity", align: 'right'},
  {label: "涨跌", prop: "changeStockQuantity", align: 'right'},
];
// LME基本金属注销仓单
const LMECancelledColumns = [
  {label: "金属", prop: "metalType"},
  {label: "库存", prop: "totalStockQuantity", align: 'right'},
  {label: "注册仓单", prop: "registerStockQuantity", align: 'right'},
  {label: "变动", prop: "registerStockRate", align: 'right'},
  {label: "注销仓单", prop: "changeStockQuantity", align: 'right'},
  {label: "变动", prop: "changeStockRate", align: 'right'},
  {label: "注销占比", prop: "changeRate", align: 'right'},
  {label: "上日注销占比", prop: "previousDayChangeRate", align: 'right'},
];
// LME基本金属开盘库存
const LMEStockColumns = [
  {label: "金属", prop: "metalType"},
  {label: "总存量", prop: "totalStockQuantity", align: 'right'},
  {label: "涨跌", prop: "changeStockQuantity", align: 'right'},
];
// 上期所仓单日报
const SHFEDailyColumn = [
  {label: "金属", prop: "metalType"},
  {label: "期货", prop: "registerStockQuantity", align: 'right'},
  {label: "增减", prop: "changeStockQuantity", align: 'right'},
];
// 上期所库存周报
const SHFEWeeklyColumn = [
  {
      label: '',
      children: [
          {label: '金属', prop: "metalType", width: '90px'}
      ]
  },
  {
      label: '上周库存',
      align: 'center',
      children: [
          {label: '小计', prop: "lastTotalStockQuantity", align: 'right'},
          {label: '期货', prop: "lastTotalFuturesQuantity", align: 'right'},
      ]
  },
  {
      label: '本周库存',
      align: 'center',
      children: [
          {label: '小计', prop: "totalStockQuantity", align: 'right'},
          {label: '期货', prop: "totalFuturesQuantity", align: 'right'},
      ]
  },
  {
      label: '库存增减',
      align: 'center',
      children: [
          {label: '小计', prop: "changeStockQuantity", align: 'right'},
          {label: '期货', prop: "changeFuturesQuantity", align: 'right'},
      ]
  },
  {
      label: '可用库存',
      align: 'center',
      children: [
          {label: '上周', prop: "lastCapacityQuantity", align: 'right'},
          {label: '本周', prop: "totalCapacityQuantity", align: 'right'},
          {label: '增减', prop: "changeCapacityQuantity", align: 'right'}
      ]
  },
];
// 上期所期货交易行情
const SHFETradingMarketColumn = [
  {label: '商品名称', prop: 'metalType'},
    {label: '交割月份', prop: 'deliveryMonth'},
    {label: '前结算', prop: 'previousDaySettlementPrice', align: 'right'},
    {label: '今开盘', prop: 'openingPrice', align: 'right'},
    {label: '最高价', prop: 'highestPrice', align: 'right'},
    {label: '最低价', prop: 'lowestPrice', align: 'right'},
    {label: '收盘价', prop: 'closingPrice', align: 'right'},
    {label: '结算参考价', prop: 'settlementReferencePrice', align: 'right'},
    {label: '涨跌1', prop: 'upsDownsOne', align: 'right'},
    {label: '涨跌2', prop: 'upsDownsTwo', align: 'right'},
    {label: '成交手', prop: 'dealInterest', align: 'right'},
    {label: '成交额', prop: 'dealAmount', align: 'right'},
    {label: '持仓手', prop: 'openInterest', align: 'right'},
    {label: '变化', prop: 'changeInterest', align: 'right'},
];
const quotationColumns = [
  {label: "自选", prop: "collectTime",},
  {label: "名称", prop: "quoteName", width: "120px"},
  {label: "市场", prop: "marketName",},
  {label: "地区", prop: "regionName",},
  {label: "价格", prop: "priceRange", align: "right"},
  {label: "均价", prop: "averagePrice", align: "right"},
  {label: "涨跌", prop: "upsDowns", align: "right"},
  {label: "单位", prop: "quoteUnit",},
  {label: "日期", prop: "quoteDate",},
];
const optionalColumns = [
  {label: '自选', prop: 'collectTime'},
  {label: '名称', prop: 'quoteName'},
  {label: '价格区间', prop: 'priceRange', align: "right",},
  {label: '均价', prop: 'averagePrice', align: "right",},
  {label: '涨跌', prop: 'upsDowns', align: "right",},
  {label: '日期', prop: 'quoteDate'},
]
export {
  COMEXColumns,
  LMECancelledColumns,
  LMEStockColumns,
  SHFEDailyColumn,
  SHFEWeeklyColumn,
  SHFETradingMarketColumn,
  quotationColumns,
  optionalColumns,
}
